package com.etc;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

/**
 * @Auther: zhezhe
 * @Date: 2018/10/2217:37
 * @Description:
 */

    public class DataMap extends Mapper<LongWritable, Text,Text,Text>{
        @Override
        protected void map(LongWritable key, Text value, Context context) throws
                IOException, InterruptedException {
            //读取一行数据
            Text line = value;
            //直接将读取到的数据作为key输出，value为空
            context.write(line,new Text(""));
        }
    }



